<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/general.xhtml">

	<ui:define name="title">
		<h:outputText value="Exigen Voiting System" />
	</ui:define>

	<ui:define name="body">
		<h:form id="form">
			<table align="center" style="margin-top: 50pt;" cellpadding="5">
				<tr>
					<td colspan="2">
						<p:messages id="messages" showDetail="false" autoUpdate="true" closable="false" />  
					</td>
				</tr>
				
				<tr>
					<td style="font-size: 23px;" valign="middle">
						<h:outputText value="Login:" />
					</td>

					<td>
						<p:inputText id="loginText" value="#{userBean.userLogin}" />
					</td>
				</tr>

				<tr>
					<td style="font-size: 23px;" valign="middle"><h:outputText
							value="Password:" /></td>

					<td>
						<p:password id="passwordText" value="#{userBean.userPassword}" />
					</td>
				</tr>

				<tr>
					<td align="right" colspan="2">
						<p:commandButton value="Login" update="form"
							id="loginButton" actionListener="#{userBean.userAuthentication}" />
					</td>
				</tr>

				<tr>
					<td align="right" colspan="2">
						<p:commandButton value="New User"
							id="newUserButton" actionListener="#{userBean.goToNewUser}"/>
					</td>
				</tr>
			</table>		
		</h:form>	
	</ui:define>
</ui:composition>


